package com.eqxiu.ieditor.weixin.dto;

import java.io.Serializable;

import com.alibaba.fastjson.annotation.JSONField;

public class AccessToken implements Serializable {

	private static final long serialVersionUID = 1097517289981298637L;
	
	@JSONField(name = "access_token")
	private String accessToken;
	@JSONField(name = "expires_in")
	private int expiresIn;

	// 以下三个字段是通过code获取token返回的.https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140842
	@JSONField(name = "refresh_token")
	private String refreshToken;
	@JSONField(name = "openid")
	private String openid;

	@JSONField(name = "scope")
	private String scope;
	
	private Integer errcode = 0;
	private String errmsg;

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public int getExpiresIn() {
		return expiresIn;
	}

	public void setExpiresIn(int expiresIn) {
		this.expiresIn = expiresIn;
	}

	public String getRefreshToken() {
		return refreshToken;
	}

	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getScope() {
		return scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}

	public Integer getErrcode() {
		return errcode;
	}

	public void setErrcode(Integer errcode) {
		this.errcode = errcode;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}

}
